import { ApiProperty } from '@nestjs/swagger';
import { IsNotEmpty, Length } from 'class-validator';
export class CreateAuthDto {
    @ApiProperty({ description: '用户名' })
    @IsNotEmpty({ message: '用户名不能为空' })
    @Length(2, 10, { message: '用户名长度在2-10之间' })
    username: string;

    @ApiProperty({ description: '密码' })
    @IsNotEmpty({ message: '密码不能为空' })
    @Length(6, 20, { message: '密码长度在6-20之间' })
    password: string;
}
